<?php
class SiteCacheAction extends AdminAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'admin';
	}

	public function execute()
	{
		$config	= C('LtConfig');
		
		$this->data['cache']			= $config->get('cache.product');
		
		$confBaseDir					= substr(dirname(__FILE__), 0, strrpos(__FILE__, "app")).'conf/standard/';
		$cacheFile						= $confBaseDir.'cache.conf.php';
		$this->data['cache_file_write']	= is_writeable($cacheFile);
		$this->data['cache_file']		= $cacheFile;
		
		$this->data['menu']	= 'site';
	}
}
